package icu.sehnen.news.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import icu.sehnen.news.entity.MyPage;
import icu.sehnen.news.entity.News;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author icu.sehnen
 * @since 2021-04-26
 */
public interface INewsService extends IService<News> {

    News findNewsById(Long id);

    IPage<News> findAll(Integer pageNum,Integer pageSize, News news);
}
